import request from '@/utils/request'

// 查询预案版本附件列表
export function listVerattach(query) {
  return request({
    url: '/pla/verattach/list',
    method: 'get',
    params: query
  })
}

// 查询预案版本附件详细
export function getVerattach(plvattachid) {
  return request({
    url: '/pla/verattach/' + plvattachid,
    method: 'get'
  })
}

// 新增预案版本附件
export function addVerattach(data) {
  return request({
    url: '/pla/verattach',
    method: 'post',
    data: data
  })
}

// 修改预案版本附件
export function updateVerattach(data) {
  return request({
    url: '/pla/verattach',
    method: 'put',
    data: data
  })
}

// 删除预案版本附件
export function delVerattach(plvattachid) {
  return request({
    url: '/pla/verattach/' + plvattachid,
    method: 'delete'
  })
}
